<html>
	<head>		
		<title>Practico Unidad 1</title> 
	</head>
	<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
	<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
	<body>
		<f:view>
			<h:form id="loginForm">
				
				<h:panelGrid>
				
				<h:outputText value="#{msg.lbl_tituloLogin}"/>
				
				<h:panelGrid columns="2">
					<h:outputText value="#{msg.lbl_usuario}" />
					<h:inputText id="usuarioTxt" value="#{loginBackingBean.usuario}" />
				
					<h:outputText value="#{msg.lbl_password}" />
					<h:inputSecret id="passwordTxt" value="#{loginBackingBean.password}" />
				</h:panelGrid>
				
				<h:messages showSummary="true" showDetail="false"
						   style="color: red; text-decoration: overline;"	
						   id="errorLogin"/>
				
				<h:commandButton value="#{msg.btn_ingresar}" action="#{loginBackingBean.doLogin}" />
				
				</h:panelGrid>				
				
			</h:form>
		</f:view> 
	</body> 
</html>